projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1145413
)
testgtk: Simplify code
author
Benjamin Otte
<otte@redhat.com>
Wed, 28 Sep 2011 02:42:54 +0000
(
04:42
+0200)
committer
Benjamin Otte
<otte@redhat.com>
Wed, 28 Sep 2011 03:29:50 +0000
(
05:29
+0200)
Use a for loop for iterating.
tests/testgtk.c
patch
|
blob
|
history
diff --git
a/tests/testgtk.c
b/tests/testgtk.c
index 37ba800de613eea9cb90f10d0c3d6d13671056fd..932e6b7262742915dbac1ee2a9ad3341c086eee2 100644
(file)
--- a/
tests/testgtk.c
+++ b/
tests/testgtk.c
@@
-5255,13
+5255,9
@@
make_focus_table (GList **list)
table = gtk_table_new (5, 5, FALSE);
- i = 0;
- j = 0;
-
- while (i < 5)
+ for (i = 0; i < 5; i++)
{
- j = 0;
- while (j < 5)
+ for (j = 0; j < 5; j++)
{
GtkWidget *widget;
@@
-5279,11
+5275,7
@@
make_focus_table (GList **list)
GTK_EXPAND | GTK_FILL,
GTK_EXPAND | GTK_FILL,
5, 5);
-
- ++j;
}
-
- ++i;
}
*list = g_list_reverse (*list);